 
<?php
$jige=75;
$js=80;
$wangye=80;
$css=80;
$pjf=($js+$wangye+$css)/3;
?>

 
   <!doctype html>
  <html lang="en">
<head>
<meta charset="utf-8">
<title>pjf</title>
</head>

<body>
         <p>成绩</p>
           平均分及格线=<?php echo $jige;?></br>
           样式表=<?php echo $css;?></br>
           网页设计=<?php echo $wangye;?></br>
           JS=<?php echo $js;?></br>
           平均分=<?php echo $pjf;?></br>
           分数=<?php if($pjf>=$jige):?>
           <span style="color: green">及格</span>
           <?php else :?>
           <span style="color: red">不及格</span>
           <?php endif;?>
           
</body>
  </html>